Fix 'C-u C-x p g' globally and 'A' in dired-mode
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 12 May 2024 17:42:08 +0000 (20:42 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Sun, 12 May 2024 17:56:55 +0000 (20:56 +0300)
commitb20d4ab374fb9b3c80b968df6acd6444f763bd40
treee7a06bce22dc78dbac0f40e7f8d68d607d44311a
parent2c759b9ce620311df97f43b791ba27b1302171c4
Fix 'C-u C-x p g' globally and 'A' in dired-mode

* lisp/progmodes/project.el (project-find-regexp): Ensure the
DEFAULT-DIRECTORY is set correctly for the 'C-u' case (bug#70888).

* lisp/progmodes/project.el (project--files-in-directory):
Ensure that the DIR argument ends with a slash --
'dired-do-find-regexp' passes it differently, for example.

* lisp/progmodes/xref.el (xref--group-name-for-display): Ensure
the project-relative and absolute display modes work well for
groups with "relative" file names.
(xref--analyze, xref--add-log-current-defun): Change accordingly.

* test/lisp/progmodes/project-tests.el
(project-find-regexp-with-prefix): New test.
lisp/progmodes/project.el
lisp/progmodes/xref.el
test/lisp/progmodes/project-tests.el